import 'package:simulator/core/module.dart';

class MCS51CPUModule extends Module {
  MCS51CPUModule(
      {required super.name,
      super.sync_ = true,
      super.state = true,
      super.registers = const []});

  @override
  void callback(data) {
    print(data);
  }

  @override
  Future<bool> exec() async {
    while (state) {
      await Future.delayed(Duration.zero);
    }
    return true;
  }
}
